package com.dcy.znoa.common.util.wj.louxing6.louxing;

import java.math.BigDecimal;

/**
 * Created by $ pengyu on 2018/6/29.
 */
public class WjSixInput {

    int number;

    Integer speed1;
    Integer speed2;
    Integer speed3;
    Integer speed4;
    Integer speed5;
    Integer speed6;

    Integer floor1;
    Integer floor2;
    Integer floor3;
    Integer floor4;
    Integer floor5;
    Integer floor6;


    Integer area1;
    Integer area2;
    Integer area3;
    Integer area4;
    Integer area5;
    Integer area6;

    BigDecimal pr;
    Integer la;
    BigDecimal bd;
    Integer plus;

    Integer min2;
    Integer min3;

    //以下的公式都只计算

    //公式1
    public  Integer getOne(WjSixOutput wjSixOutput){
        Integer result =   speed1 * wjSixOutput.getX1() + speed2 * wjSixOutput.getX2();
        if(wjSixOutput.getX3()!=null){
            result = result + speed3 * wjSixOutput.getX3();
        }
        if(wjSixOutput.getX4()!=null){
            result = result + speed4 * wjSixOutput.getX4();
        }
        if(wjSixOutput.getX5()!=null){
            result = result + speed5 * wjSixOutput.getX5();
        }
        if(wjSixOutput.getX6()!=null){
            result = result + speed6 * wjSixOutput.getX6();
        }
        return result;
    }
    //公式2
    public  Integer getTwo(WjSixOutput wjSixOutput){
        Integer result = area1 * floor1 * wjSixOutput.getX1() + area2 * floor2 * wjSixOutput.getX2();
        if(wjSixOutput.getX3()!=null){
            result = result +  area3 * floor3 * wjSixOutput.getX3();
        }
        if(wjSixOutput.getX4()!=null){
            result = result +  area4 * floor4 * wjSixOutput.getX4();
        }
        if(wjSixOutput.getX5()!=null){
            result = result +  area5 * floor5 * wjSixOutput.getX5();
        }
        if(wjSixOutput.getX6()!=null){
            result = result +  area6 * floor6 * wjSixOutput.getX6();
        }
        return result;
    }
    //公式3
    public Integer getThree(WjSixOutput wjSixOutput){
        Integer result =   area1  * wjSixOutput.getX1() + area2  * wjSixOutput.getX2();
        if(wjSixOutput.getX3()!=null){
            result = result + area3  * wjSixOutput.getX3();
        }
        if(wjSixOutput.getX4()!=null){
            result = result + area4  * wjSixOutput.getX4();
        }
        if(wjSixOutput.getX5()!=null){
            result = result + area5  * wjSixOutput.getX5();
        }
        if(wjSixOutput.getX6()!=null){
            result = result + area6  * wjSixOutput.getX6();
        }
        return result;
    }

    public WjSixInput(int number, Integer speed1, Integer speed2, Integer speed3, Integer speed4, Integer speed5, Integer speed6, Integer floor1, Integer floor2, Integer floor3, Integer floor4, Integer floor5, Integer floor6, Integer area1, Integer area2, Integer area3, Integer area4, Integer area5, Integer area6, BigDecimal pr, Integer la, BigDecimal bd, Integer plus, Integer min2, Integer min3) {
        this.number = number;
        this.speed1 = speed1;
        this.speed2 = speed2;
        this.speed3 = speed3;
        this.speed4 = speed4;
        this.speed5 = speed5;
        this.speed6 = speed6;
        this.floor1 = floor1;
        this.floor2 = floor2;
        this.floor3 = floor3;
        this.floor4 = floor4;
        this.floor5 = floor5;
        this.floor6 = floor6;
        this.area1 = area1;
        this.area2 = area2;
        this.area3 = area3;
        this.area4 = area4;
        this.area5 = area5;
        this.area6 = area6;
        this.pr = pr;
        this.la = la;
        this.bd = bd;
        this.plus = plus;
        this.min2 = min2;
        this.min3 = min3;
    }

    public WjSixInput(int number, Integer speed1, Integer speed2, Integer speed3, Integer speed4, Integer speed5, Integer speed6, Integer floor1, Integer floor2, Integer floor3, Integer floor4, Integer floor5, Integer floor6, Integer area1, Integer area2, Integer area3, Integer area4, Integer area5, Integer area6, BigDecimal pr, Integer la, BigDecimal bd, Integer plus) {
        this.number = number;
        this.speed1 = speed1;
        this.speed2 = speed2;
        this.speed3 = speed3;
        this.speed4 = speed4;
        this.speed5 = speed5;
        this.speed6 = speed6;
        this.floor1 = floor1;
        this.floor2 = floor2;
        this.floor3 = floor3;
        this.floor4 = floor4;
        this.floor5 = floor5;
        this.floor6 = floor6;
        this.area1 = area1;
        this.area2 = area2;
        this.area3 = area3;
        this.area4 = area4;
        this.area5 = area5;
        this.area6 = area6;
        this.pr = pr;
        this.la = la;
        this.bd = bd;
        this.plus = plus;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public Integer getSpeed5() {
        return speed5;
    }

    public void setSpeed5(Integer speed5) {
        this.speed5 = speed5;
    }

    public Integer getSpeed6() {
        return speed6;
    }

    public void setSpeed6(Integer speed6) {
        this.speed6 = speed6;
    }

    public Integer getFloor5() {
        return floor5;
    }

    public void setFloor5(Integer floor5) {
        this.floor5 = floor5;
    }

    public Integer getFloor6() {
        return floor6;
    }

    public void setFloor6(Integer floor6) {
        this.floor6 = floor6;
    }

    public Integer getArea5() {
        return area5;
    }

    public void setArea5(Integer area5) {
        this.area5 = area5;
    }

    public Integer getArea6() {
        return area6;
    }

    public void setArea6(Integer area6) {
        this.area6 = area6;
    }

    public Integer getSpeed1() {
        return speed1;
    }

    public void setSpeed1(Integer speed1) {
        this.speed1 = speed1;
    }

    public Integer getSpeed2() {
        return speed2;
    }

    public void setSpeed2(Integer speed2) {
        this.speed2 = speed2;
    }

    public Integer getSpeed3() {
        return speed3;
    }

    public void setSpeed3(Integer speed3) {
        this.speed3 = speed3;
    }

    public Integer getSpeed4() {
        return speed4;
    }

    public void setSpeed4(Integer speed4) {
        this.speed4 = speed4;
    }

    public Integer getFloor1() {
        return floor1;
    }

    public void setFloor1(Integer floor1) {
        this.floor1 = floor1;
    }

    public Integer getFloor2() {
        return floor2;
    }

    public void setFloor2(Integer floor2) {
        this.floor2 = floor2;
    }

    public Integer getFloor3() {
        return floor3;
    }

    public void setFloor3(Integer floor3) {
        this.floor3 = floor3;
    }

    public Integer getFloor4() {
        return floor4;
    }

    public void setFloor4(Integer floor4) {
        this.floor4 = floor4;
    }

    public Integer getArea1() {
        return area1;
    }

    public void setArea1(Integer area1) {
        this.area1 = area1;
    }

    public Integer getArea2() {
        return area2;
    }

    public void setArea2(Integer area2) {
        this.area2 = area2;
    }

    public Integer getArea3() {
        return area3;
    }

    public void setArea3(Integer area3) {
        this.area3 = area3;
    }

    public Integer getArea4() {
        return area4;
    }

    public void setArea4(Integer area4) {
        this.area4 = area4;
    }

    public BigDecimal getPr() {
        return pr;
    }

    public void setPr(BigDecimal pr) {
        this.pr = pr;
    }

    public Integer getLa() {
        return la;
    }

    public void setLa(Integer la) {
        this.la = la;
    }

    public BigDecimal getBd() {
        return bd;
    }

    public void setBd(BigDecimal bd) {
        this.bd = bd;
    }

    public Integer getPlus() {
        return plus;
    }

    public void setPlus(Integer plus) {
        this.plus = plus;
    }

    public Integer getMin2() {
        return min2;
    }

    public void setMin2(Integer min2) {
        this.min2 = min2;
    }

    public Integer getMin3() {
        return min3;
    }

    public void setMin3(Integer min3) {
        this.min3 = min3;
    }
}
